package cn.infinite.security.configuration;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "spring.security.security-basic.wx-authenticate")
public class WxConfigurerProperties {

    private String appId;

    private String secret;

    /**
     * starting point of wx oauth2, you can get redirect-url on this point
     * 'security basic' advise not start authenticate when user into page for the first time.
     * we should guide user start authenticate when necessary
     */
    private String authenticateEndPoint;

    /**
     * receive wx oauth2 call back
     */
    private String authenticateCallBackPoint;

    private String authenticateSuccessUrl;

    private String authenticateFailUrl;

    /**
     * Auto register user if can't find userInfo
     */
    private Boolean autoRegister = true;
}
